package logic

import (
	"context"

	"go-exp/zero/rpc/permission/internal/svc"
	"go-exp/zero/rpc/permission/pb/permission"

	"github.com/zeromicro/go-zero/core/logx"
)

type ListAllPermissionsLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewListAllPermissionsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListAllPermissionsLogic {
	return &ListAllPermissionsLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 系统管理
func (l *ListAllPermissionsLogic) ListAllPermissions(in *permission.Empty) (*permission.ListPermissionsResponse, error) {
	// todo: add your logic here and delete this line

	return &permission.ListPermissionsResponse{}, nil
}
